﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp13
{


    /// <summary>
    /// 小兵
    /// </summary>
    public class batman:Enemy 
    {
        public batman(string n) : Enemy(n)
        {
        }

        //子类重写父类虚方法
        public override void Attack()
        {
           
            Console.WriteLine("子类重写虚方法  小兵发起攻击");
        }
    }
}
